<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport"
			content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">

		<title>
			<%= htmlWebpackPlugin.options.title %>
		</title>
		<script>
			document.addEventListener('DOMContentLoaded', function() {
				document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
			})
			var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
				CSS.supports('top: constant(a)'));
			document.write(
				'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
				(coverSupport ? ', viewport-fit=cover' : '') + '" />')
		</script>
		<link rel="stylesheet" href="<%= htmlWebpackPlugin.options.baseUrl %>static/index.css" />
		<script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
		<!-- <script src="path/to/fastclick.min.js"></script> -->
		<script async defer crossorigin="anonymous"
			src="https://connect.facebook.net/en_US/sdk.js#version=v18.0&appId=1653391465136823&xfbml=true"></script>
		<!-- <script src="https://accounts.google.com/gsi/client" async defer></script> -->
		<script src="https://accounts.google.com/gsi/client" async></script>
	</head>
	<body>
		<noscript>
			<strong>Please enable JavaScript to continue.</strong>
		</noscript>
		<div id="app"></div>
		<!-- built files will be auto injected -->
		<script>
			// 缩放
			try {
				// 禁用双击缩放
				document.addEventListener("touchstart", function(event) {
					if (event.touches.length > 1) {
						event.preventDefault();
					}
				});
				var lastTouchEnd = 0;
				document.addEventListener(
					"touchend",
					function(event) {
						var now = new Date().getTime();
						if (now - lastTouchEnd <= 300) {
							event.preventDefault();
						}
						lastTouchEnd = now;
					},
					false
				);
				// 禁用双指手势操作
				document.addEventListener("gesturestart", function(event) {
					event.preventDefault();
				});
			} catch (error) {}
			// window.onload = () => {
			// window.fbAsyncInit = function() {
			// 	FB.init({
			// 		appId: '1653391465136823',
			// 		xfbml: true,
			// 		// version: 'v18.0'
			// 		version: 'v18.0',
			// 		autoLogAppEvents : true,
			// 	});
			// 	FB.AppEvents.logPageView();
			// };

			// (function(d, s, id) {
			// 	var js, fjs = d.getElementsByTagName(s)[0];
			// 	if (d.getElementById(id)) {
			// 		return;
			// 	}
			// 	js = d.createElement(s);
			// 	js.id = id;
			// 	// https://connect.facebook.net/zh/sdk.js en_US
			// 	js.src = "https://connect.facebook.net/zh/sdk.js";
			// 	fjs.parentNode.insertBefore(js, fjs);
			// }(document, 'script', 'facebook-jssdk'));
			// }
			// function handleCredentialResponse(response) {
			// 	console.log("Encoded JWT ID token: " + response.credential);
			// }
			// setTimeout(() => {
			// 	console.log('你他妈的油饼啊啊？？？？？？？？？？？？？');
			// 	google.accounts.id.initialize({
			// 		client_id: "596617913554-oatanu9kr11hfm32ehqup70kdcjq2l1f.apps.googleusercontent.com",
			// 		callback: handleCredentialResponse
			// 	});
			// 	console.log(google, 'googlegooglegooglegooglegooglegoogle');
			// }, 1000)
		</script>
	</body>
	<style>
		.css-1yzzujv {
			bottom: 100rpx !important;
		}
	</style>
</html>